package com.jbp.controller;

import com.jbp.model.PayConfig;
import com.jbp.service.PayConfigService;
import com.jbp.utils.PageUtils;
import com.jbp.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.Map;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import springfox.documentation.annotations.ApiIgnore;

/**
 * (PayConfig)表控制层
 * @author cc
 * @since 2020-10-11 11:31:45
 */
@Api(tags ="APP接口--PayConfig" )
@RestController
@ApiIgnore
@RequestMapping("rest/payConfig")
public class PayConfigController {
    @Autowired
    private PayConfigService payConfigService;

    /** 列表 */
    @ApiOperation(value="列表")
    @ApiResponses({
            @ApiResponse(code = 200,message = "成功",response = PayConfig.class),
            @ApiResponse(code = 201,message = "返回失败信息")
    })
    @GetMapping("/list")
    public R list(){
        return R.ok(payConfigService.list());
    }
}